package com.xt.purchasingsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xt.purchasingsystem.dto.BuyerExecuteDto;
import com.xt.purchasingsystem.model.BuyerExecute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
public interface BuyerExecuteMapper extends BaseMapper<BuyerExecute> {
    /**
     * 查询所有未审核的采购执行单及其采购执行明细的方法
     * @return
     */
    List<BuyerExecuteDto> getAllBuyerExecuteNoCheck();

    List<BuyerExecuteDto> getAllBuyerExecuteIsCheck();

    /**
     * 根据编号修改放货状态
     * @param id
     * @param putTag
     * @return
     */
    int updatePutTagById(@Param("id") String id, @Param("putTag") String putTag);
}
